<template>
  <transition name="slide">
    <!-- 右侧滑出动画 -->
    <slot></slot>
  </transition>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.slide-enter-active,
.slide-leave-active {
  transition: all 0.3s;
}

.slide-enter,
.slide-leave-to {
  transform: translate3d(100%, 0, 0);
}
</style>
